//验证通用名是否已存在
function finddiName() {
    var diName = $(".ddName").val();
    $.ajax({
        url:"/myspringboot/DrugInformationController/finddiName",
        data:{diName:diName},
        type:"post",
        dataType:"json",
        success :function (result) {
            var code = result.code;
            var msg = result.msg;

            if (code==0){
                alert(msg)
            }else {
            }

        }
    })
}